package svc

import (
	"api/internal/config"
	"github.com/zeromicro/go-zero/zrpc"
	"system_srv/orderclient"
)

type ServiceContext struct {
	Config    config.Config
	SystemSrv orderclient.Order
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:    c,
		SystemSrv: orderclient.NewOrder(zrpc.MustNewClient(c.SystemSrv)),
	}
}
